

package com.hazelcast.spi.merge;

/**
 * Represents a read-only view of a data structure key/value-pair for the merging process after a split-brain.
 *
 * @param <K> the type of the key
 * @param <V> the type of the value
 * @since 3.10
 */
public interface MergingEntry<K, V> extends MergingValue<V> {

    /**
     * Returns the deserialized merging key.
     *
     * @return the deserialized merging key
     */
    K getKey();

    /**
     * Returns the merging key in the in-memory format of the backing data structure.
     *
     * @return the merging key
     */
    Object getRawKey();
}
